package com.st.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 订单详情表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_order_detail")
public class OrderDetail implements Serializable {
    /**
     * id唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单表id
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 商品表id
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 商品表价格
     */
    @TableField(value = "goods_price")
    private Double goodsPrice;

    /**
     * 商品表名
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 商品表数量
     */
    @TableField(value = "goods_number")
    private Integer goodsNumber;

    /**
     * 删除标记:0为未删除,1为删除
     */
    @TableField(value = "del_flag")
    private String delFlag;

    /**
     * 新建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_GOODS_PRICE = "goods_price";

    public static final String COL_GOODS_NAME = "goods_name";

    public static final String COL_GOODS_NUMBER = "goods_number";

    public static final String COL_DEL_FLAG = "del_flag";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}